<template>
  <PopupProvider defaultType="dialog" :defaultProps="defaultProps">
    <PopupManage namespace="global" :items="popupList" />
    <slot />
  </PopupProvider>
</template>

<script setup>
import { PopupProvider, PopupManage } from '@wowon/components';
import systemPopupList from './system';
import businessPopupList from './business';

const popupList = [...businessPopupList, ...systemPopupList];

const defaultProps = {
  dialog: {
    draggable: true,
  },
};
</script>
